package com.mindcraft.shop.client;

import com.mindcraft.user.po.McUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-api",fallbackFactory = UserServiceClientFallbackFactory.class)
public interface UserClient {

    @GetMapping("/api/user/getUser")
    public McUser getUser(@RequestParam("userId")String userId);


//    @GetMapping("/api/user/getUserByIds")
//    public List<User> getUserList(@RequestParam List<Integer> userIdList);
}
